<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>vue.js</title>
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
	<div id="app">
		<ol>
			<todo-item v-for="item in sites" v-bind:todo="item"></todo-item>
		</ol>
	</div>
	<script type="text/javascript">
		Vue.component('todo-item', {
			props: ['todo'],
			template: '<li>{{todo.text}}</li>'
		})
		var vm = new Vue({
			el: '#app',
			data: {
				sites: [
					{text: 'test1'},
					{text: 'test2'},
					{text: 'test3'}
				]
			}
		})

	</script>
</body>
</html>
